//
//  BCollectionViewCell.m
//  MyTrip
//
//  Created by dllo on 15/9/29.
//  Copyright (c) 2015年 张益. All rights reserved.
//

#import "BCollectionViewCell.h"
#import "MyTableViewCell.h"
@interface BCollectionViewCell()<UITableViewDataSource,UITableViewDelegate>


@property (nonatomic , retain)UITableView *tabel;


@end

@implementation BCollectionViewCell
- (void)dealloc
{
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
        self.contentView.backgroundColor=[UIColor redColor];
    }
    return self;
}
-(void)createView
{
    
    self.tabel = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 270, 667-49) style:UITableViewStyleGrouped];
    self.tabel.dataSource = self;
    self.tabel.delegate = self;
    self.tabel.rowHeight = 220;
    self.tabel.bounces = YES;
    self.tabel.showsVerticalScrollIndicator = NO;
    [self.tabel registerClass:[MyTableViewCell class] forCellReuseIdentifier:@"cell"];
    [self.contentView addSubview:self.tabel];
    
    
    
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 10;
    
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    
    MyTableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:@"cell"];
    
    return cell;
    
    
    
    
    
    
}

@end
